<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class AllSalary extends CI_Controller {
 function __construct()
 {
   parent::__construct();
   $this->load->model('muser');   
   $this->load->helper('date');
   $this->load->library('my_datatables');	  
 }
 function index(){
 	$this->load->view('_header');
	$this->load->view('payRoll/allSalary_view');
	$this->load->view('_footer');
	
 }
 function table(){
 	$this->my_datatables
 		->select('Salary_ID,Staff_ID,FullName,BasicSalary,FromDate,TotalAllowance,MonthAllowance,E_SHU,C_SHU,PIT,Tax,PaySalary,Total')
		->from('Salary')
		->add_column('Edit','<a href="'.base_url().'payRoll/edit/$1">Edit</a>','Salary_ID');
		//->join('Staff','Staff.Staff_ID=WorkDay.Staff_ID')
		//->select('FullName');
	echo $this->my_datatables->generate();
 }
 
 
}

	
 ?>
		